package com.jisf.driver.utils;

import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.kafka.core.KafkaTemplate;
import org.springframework.stereotype.Component;

/**
 * @Classname LogUtil
 * @Description TODO
 * @Date 2022/5/11 1:19
 * @Created by jisf：【429627912@qq.com】
 */
@Slf4j
@Component
public class LogUtil {

    @Autowired
    private KafkaUtil kafkaUtil;

    public void info(String var1){
        log.info(var1);
        kafkaUtil.producerLogInfo(var1);
    }

    public void error(String var1, Throwable var2){
        log.error(var1, var2);
    }

}
